﻿using PLC.Domain.Dto;
using PLC.Domain.Enum;
using PLC.Domain.Models;

namespace PLC.Domain.ScheduledTasks.Strategy.Trigger;

public class HandleStatusDataStrategy:BaseTrigger
{
    public override EnumTrigger EnumTrigger { get; protected set; } = EnumTrigger.处理状态数据;
    public override int TriggerEvent(PLCConfig plcConfig, DtoDataConfig trigger, PLCReadModel plcReadModel)
    {
        plcReadModel.CalcYieldRate(plcConfig.DeviceConfig.DeviceName);
        return default;
    }
}